/**
 * A processing instruction. Returned by the Abdera XPath implementation when querying for
 * PI nodes (e.g. xpath.selectNodes("//processing-instruction()"); ...). There should
 * be very little reason for applications to use this.  It is provided to keep applications
 * from having to deal with the underlying parser implementation
 */
public interface ProcessingInstruction {

  /**
   * Delete this PI
   */
  void discard();
  
  /**
   * The parent node
   */
  Element getParentElement();
  
  /**
   * The PI target
   */
  String getTarget();
  
  /**
   * The PI target
   */
  void setTarget(String target);
  
  /**
   * The PI text
   */
  String getText();
  
  /**
   * The PI text
   */
  ProcessingInstruction setText(String text);
  
}
